Hi Troy, Mach3 sends the "flags" value as a binary bit pattern (2 power of n). I think the original idea was to be able to home multiple axes at the same time. For example to home x,y,z together a value of 7 (1+2+4) would be used. In actuality Mach3 doesn't ever seem to do this. The 4th and 5th axes would be values 8 and 16. The HomeMach3.c example prints the flags variable to the Console Screen so you can use that to verify what Mach3 is actually sending. Regards TK
| Group: DynoMotion |
Message: 6270 |
From: Troy Stevens |
Date: 12/12/2012 |
| Subject: Re: 4th and 5th home switch. |
Ok, I discovered the console and figured out the flags just as I got your response.
Now I have a new problem, A and B homing worked great the first time. Now they don't home anymore, neither do the other limit switches, and nothing appears in the console anymore. I can jog the axis in mach3, I just can't home anymore, and the console isn't working. I have restarted everything with the same results.
Not sure what I did.
On Wed, Dec 12, 2012 at 12:22 PM, Tom Kerekes <tk@...> wrote:
Hi Troy, Mach3 sends the "flags" value as a binary bit pattern (2 power of n). I think the original idea was to be able to home multiple axes at the same time. For example to home x,y,z together a value of 7 (1+2+4) would be used. In actuality Mach3 doesn't ever seem to do this. The 4th and 5th axes would be values 8 and 16.
The HomeMach3.c example prints the flags variable to the Console Screen so you can use that to verify what Mach3 is actually sending. Regards TK
| Group: DynoMotion |
Message: 6272 |
From: Tom Kerekes |
Date: 12/12/2012 |
| Subject: Re: 4th and 5th home switch. |
Hi Troy,
We would need more info on what you are doing.
Maybe you don't have a Home file specified in the Mach3 | Config Plugins |Dynomotion
Screen?
Regards TK
| Group: DynoMotion |
Message: 6273 |
From: Troy Stevens |
Date: 12/12/2012 |
| Subject: Re: 4th and 5th home switch. |
I was wrong about the console, it is working, it is just my homing code doesn't seem to be finishing or gets stuck, so it doesn't show up in the console after the first press. Somehow I was able to reset everything once and the homing worked again exactly one time.
Is there an easy way to kill all the homing tread in case something in my home routine is not working? I have tried re-loading and restarting everything I can not get everything to reset so I can debug my homing code. I am not sure what I did but I did get it to reset the one time.
On Wed, Dec 12, 2012 at 4:05 PM, Tom Kerekes <tk@...> wrote:
Hi Troy,
We would need more info on what you are doing.
Maybe you don't have a Home file specified in the Mach3 | Config Plugins |Dynomotion
Screen?
Regards TK
| Group: DynoMotion |
Message: 6275 |
From: Tom Kerekes |
Date: 12/12/2012 |
| Subject: Re: 4th and 5th home switch. |
Hi Troy, For Debugging you can run KMotion.exe concurrently with Mach3. The C Programs Screen will display a green bar on each Thread that is running. To Kill a running Thread first select it and then push Halt. Regards TK
| | | | | | | | | |